home *** CD-ROM | disk | FTP | other *** search
- #ifndef REPLACE_H
- #define REPLACE_H
-
- #include <exec/types.h>
- #include <proto/dos.h>
- #include <proto/utility.h>
- #include <stdio.h>
- #include <stdlib.h>
-
- #ifndef Prototype
- #define Prototype extern
- #endif !Prototype
-
- #ifndef STXT
- #define STXT const TEXT
- #endif !STXT
-
- #define RBUFSIZE 8192L
-
- typedef struct ReplaceConfig
- {
- FILE *cfg_fi;
- FILE *cfg_fo;
- FILE *cfg_fe;
-
- TEXT *cfg_in;
- TEXT *cfg_out;
-
- TEXT *cfg_search;
- LONG cfg_slen;
-
- TEXT *cfg_replace;
- LONG cfg_rlen;
-
- LONG (*cfg_comp)(TEXT *,TEXT *,LONG);
-
- LONG cfg_case;
- LONG cfg_count;
- BOOL cfg_verbose;
- } CFG;
-
-
- Prototype void main(int,char **);
- Prototype void exit(int);
-
- Prototype LONG strncmp(TEXT *,TEXT *,LONG);
- Prototype LONG strnicmp(TEXT *,TEXT *,LONG);
-
- Prototype LONG strcmp(TEXT *,TEXT *);
- Prototype LONG stricmp(TEXT *,TEXT *);
-
- Prototype VOID bzero(VOID *,LONG);
-
- Prototype char *strerror(int);
- Prototype LONG strlen(TEXT *);
-
- #include "Replace_ver.h"
- #include "Replace_protos.h"
-
- #endif !REPLACE_H
-